public class Simulator {
    public void playsound(Animal animal){
        System.out.println("播放的是"+animal.getAnimalName()+"类的声音");
        animal.cry();
    }
}
